<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>document</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<link rel="stylesheet" href="css/style.css" />
	<link rel="stylesheet" href="css/redactor.css" />
</head>
<body>
	<div class="container">
		<%@ include file="include/top.jsp" %>
	<!--header end-->
		<div class="content">
			<div class="row">
				<div class="span9">
				<ul class="breadcrumb">
				  <li><a href="documentlist.jspx"><i class="icon-folder-open"></i>资料</a> <span class="divider">/</span></li>
				  <li><a href="documentlist.jspx?id=${document.id }">资料标题</a> <span class="divider">/</span></li>
				  <li class="active">编辑评论</li>
				</ul>
				<div class="page_show">
					<h4>${document.title }&nbsp;&nbsp;<small title="${document.createtime }" id="${document.id}">${document.employee.name }发表于一个月前</small></h4>
					<p>${document.content }</p>
				</div>
				<h4>编辑评论</h4>
				<form action="commentedit.jspx" method="post" class="form-horizontal">
					<input type="hidden" name="id" value="${comment.id }">
					<textarea name="content" id="" class="redactor-text">${comment.content }</textarea><br/>
					<button type="button" class="btn btn-info" id="save">发表评论</button>
					<a href="documentshow.jspx?id=${document.id }" type="button" class="btn">返回</a>
				</form>
				</div>
				<div class="span3">
				</div>
			</div>
		</div>
		<!--container end-->
		<div class="footer">
			<p>Copyright © 2013 xxx版权所有</p>
		</div>
		<!--footer end-->
	</div>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/zh_cn.js"></script>
	<script type="text/javascript" src="js/redactor.js"></script>
	<script type="text/javascript">
		$(function(){
			$(".redactor-text").redactor({
				lang:'zh_cn',
				buttons: [ 'bold', 'italic', 'deleted', '|',
	    'unorderedlist', 'orderedlist', 'outdent', 'indent', '|', 'link', '|','fontcolor', 'backcolor', '|', 'alignment', '|', 'horizontalrule']			
			});
			$("#save").click(function(){
				$(".form-horizontal").submit();
			});
		});
	</script>
</body>
</html>